package com.jic.member.mapper.power;

import java.lang.Long;
import java.util.List;

import com.jic.member.entity.power.MememberLegalRule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 会员等级管理-权益规则主表
 * @author : zxl
 * @email : 
 * @since : 2020-04-03 11:09:40
 * @version : v1.0.0
 */
@Mapper
public interface  MememberLegalRuleMapper {

    long insert(MememberLegalRule mememberLegalRule);

    long delete(Long legalRuleId);

    long update(MememberLegalRule mememberLegalRule);

    MememberLegalRule queryByPrimaryKey(Long legalRuleId);

    List<MememberLegalRule> query(MememberLegalRule mememberLegalRule);

    List<MememberLegalRule> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("mememberLegalRule") MememberLegalRule mememberLegalRule);

    long queryPageCount(MememberLegalRule mememberLegalRule);
}